using Codeflows.Results;
using Codeflows.Tracking;

namespace Codeflows.Dispatch.ResultHandlers
{
    class SuspendHandler : ResultHandler<SuspendedResult>
    {
        protected override void Handle(CodeflowInstance instance, SuspendedResult result)
        {
            instance.Suspend(result.Exception);            
        }
    }
}